hvmloader: Allocate an 8 byte buffer to contain the VM generation id
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 30 Nov 2011 14:53:36 +0000 (06:53 -0800)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 30 Nov 2011 14:53:36 +0000 (06:53 -0800)
commiteda65f1efeceb87b8be4cfdac229ac07b0c39b8a
tree1bdc1d4e364466b3336ef81bab03c069d7652c12
parent7f1c7895760a624d2ed5371fa7493da9935f99ce
hvmloader: Allocate an 8 byte buffer to contain the VM generation id
and populate it at boot time with a value read from
"platform/generation_id". Also add code to libxl to populate this
xenstore key with the value of a new 'generation_id' parameter in the
VM config file.  Populate the ADDR package of VM_Gen_Counter ACPI
device such that the first integer evaluates to the low order 32 bits
of the buffer address and the second integer evaluates to the high
order 32 bits of the buffer address.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
tools/firmware/hvmloader/acpi/build.c
tools/firmware/hvmloader/util.c
tools/firmware/hvmloader/util.h